package com.chzc.fm.duotin.bean.home;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * 数据列表
 * Created by Administrator on 2016/6/24.
 */
public class RecommendDataList {


    /**
     * id : 11262
     * title :  在瓜洲，你为谁泪流.mp3
     * subhead :
     * href : duotin://forward/content/1446673
     * type : 2
     * subValues : []
     * image_url : http://c3.duotin.com/i1/DT/3kfjtsNBXNI63OTAqT9Dr4osP58P0Y7Cc1pNs5tAMyU.png
     * item_value : 1446673
     * sub_title : 民谣在路上
     * is_advertisement : 0
     * exposure_url :
     * click_url :
     */

    private int id;
    private String title;
    private String subhead;
    private String href;
    private int type;
    private String image_url;
    private String item_value;
    private String sub_title;
    private int is_advertisement;
    private String exposure_url;
    private String click_url;
    private List<?> subValues;

    public static RecommendDataList objectFromData(String str) {

        return new Gson().fromJson(str, RecommendDataList.class);
    }

    public static List<RecommendDataList> arrayRecommendDataListFromData(String str) {

        Type listType = new TypeToken<ArrayList<RecommendDataList>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubhead() {
        return subhead;
    }

    public void setSubhead(String subhead) {
        this.subhead = subhead;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getImage_url() {
        return image_url;
    }

    public void setImage_url(String image_url) {
        this.image_url = image_url;
    }

    public String getItem_value() {
        return item_value;
    }

    public void setItem_value(String item_value) {
        this.item_value = item_value;
    }

    public String getSub_title() {
        return sub_title;
    }

    public void setSub_title(String sub_title) {
        this.sub_title = sub_title;
    }

    public int getIs_advertisement() {
        return is_advertisement;
    }

    public void setIs_advertisement(int is_advertisement) {
        this.is_advertisement = is_advertisement;
    }

    public String getExposure_url() {
        return exposure_url;
    }

    public void setExposure_url(String exposure_url) {
        this.exposure_url = exposure_url;
    }

    public String getClick_url() {
        return click_url;
    }

    public void setClick_url(String click_url) {
        this.click_url = click_url;
    }

    public List<?> getSubValues() {
        return subValues;
    }

    public void setSubValues(List<?> subValues) {
        this.subValues = subValues;
    }
}
